package com.relman.vo
{
	import com.adobe.cairngorm.vo.IValueObject;
	
	[Bindable]
	[RemoteClass(alias="com.relman.vo.UserVO")]
	public class UserVO implements IValueObject
	{

		public var name : String;
		public var password : String;


        public function toXML() : XML {
	      var retval : XML =
	          <user>
	              <name>{name}</name>
	          </user>
	      return retval;
	    }
		
	    public static function fromXML(userXML : XML) : UserVO {
                var uvo : UserVO = new UserVO();
                uvo.name = userXML.name;
                return uvo;
	    }	
		
	}
}
